

function ValidateLoaiTinTuc() {
    var tenloaitintuc = document.getElementsByName("LoaiTinTuc_TenLoaiTinTuc").item(0);
    if (tenloaitintuc.value == "") {
        alert("Please input TenLoaiTinTuc");
        return false;
    }
    return true;
}


function ValidateKhachHang() {
    var tencongty = document.getElementsByName("KhachHang_TenCongTy").item(0);
    if (tencongty.value == "") {
        alert("Please input TenCongTy");
        return false;
    }
    var url = document.getElementsByName("KhachHang_URL").item(0);
    if (url.value == "") {
        alert("Please input URL");
        return false;
    }
    return true;
}





function ValidateBinhLuanTinTuc() {
    var noidung = document.getElementsByName("BinhLuanTinTuc_NoiDung").item(0);
    if (noidung.value == "") {
        alert("Please input NoiDung");
        return false;
    }
    var tennguoibinhluan = document.getElementsByName("BinhLuanTinTuc_TenNguoiBinhLuan").item(0);
    if (tennguoibinhluan.value == "") {
        alert("Please input TenNguoiBinhLuan");
        return false;
    }
    var ngaybinhluan = document.getElementsByName("BinhLuanTinTuc_NgayBinhLuan").item(0);
    if (ngaybinhluan.value == "") {
        alert("Please input NgayBinhLuan");
        return false;
    }
    return true;
}





function ValidateVungQuangCao() {
    var tenvungquangcao = document.getElementsByName("VungQuangCao_TenVungQuangCao").item(0);
    if (tenvungquangcao.value == "") {
        alert("Please input TenVungQuangCao");
        return false;
    }
    return true;
}


function ValidateQuangCao() {
    var url = document.getElementsByName("QuangCao_URL").item(0);
    if (url.value == "") {
        alert("Please input URL");
        return false;
    }
    return true;
}





function ValidateThongKe() {
    var luongnguoitruycap = document.getElementsByName("ThongKe_LuongNguoiTruyCap").item(0);
    if (luongnguoitruycap.value == "") {
        alert("Please input LuongNguoiTruyCap");
        return false;
    }
    return true;
}


function ValidateLoaiVideo() {
    var tenloaivideo = document.getElementsByName("LoaiVideo_TenLoaiVideo").item(0);
    if (tenloaivideo.value == "") {
        alert("Please input TenLoaiVideo");
        return false;
    }
    return true;
}


function ValidateAlbum() {
    var tenalbum = document.getElementsByName("Album_TenAlbum").item(0);
    if (tenalbum.value == "") {
        alert("Please input TenAlbum");
        return false;
    }
    return true;
}


function ValidateVideo() {
    var tenvideo = document.getElementsByName("Video_TenVideo").item(0);
    if (tenvideo.value == "") {
        alert("Please input TenVideo");
        return false;
    }
    var url = document.getElementsByName("Video_URL").item(0);
    if (url.value == "") {
        alert("Please input URL");
        return false;
    }
    return true;
}




function ValidateHopThu() {
    var tieude = document.getElementsByName("HopThu_TieuDe").item(0);
    if (tieude.value == "") {
        alert("Please input TieuDe");
        return false;
    }
    var noidung = document.getElementsByName("HopThu_NoiDung").item(0);
    if (noidung.value == "") {
        alert("Please input NoiDung");
        return false;
    }
    var emailnguoihoi = document.getElementsByName("HopThu_EmailNguoiHoi").item(0);
    if (emailnguoihoi.value == "") {
        alert("Please input EmailNguoiHoi");
        return false;
    }
    var ngayhoi = document.getElementsByName("HopThu_NgayHoi").item(0);
    if (ngayhoi.value == "") {
        alert("Please input NgayHoi");
        return false;
    }
    var daphanhoi = document.getElementsByName("HopThu_DaPhanHoi").item(0);
    if (daphanhoi.value == "") {
        alert("Please input DaPhanHoi");
        return false;
    }
    return true;
}


function ValidateBinhLuanVideo() {
    var noidung = document.getElementsByName("BinhLuanVideo_NoiDung").item(0);
    if (noidung.value == "") {
        alert("Please input NoiDung");
        return false;
    }
    var tennguoibinhluan = document.getElementsByName("BinhLuanVideo_TenNguoiBinhLuan").item(0);
    if (tennguoibinhluan.value == "") {
        alert("Please input TenNguoiBinhLuan");
        return false;
    }
    var ngaybinhluan = document.getElementsByName("BinhLuanVideo_NgayBinhLuan").item(0);
    if (ngaybinhluan.value == "") {
        alert("Please input NgayBinhLuan");
        return false;
    }
    return true;
}

function ValidateNguoiDung() {
    var username = document.getElementsByName("NguoiDung_UserName").item(0);
    if (username.value == "") {
        alert("Please input UserName");
        return false;
    }
    var password = document.getElementsByName("NguoiDung_Password").item(0);
    if (password.value == "") {
        alert("Please input Password");
        return false;
    }
    var email = document.getElementsByName("NguoiDung_Email").item(0);
    if (email.value == "") {
        alert("Please input Email");
        return false;
    }
    return true;
}

function ValidateKhachHangLamPhanMem() {
    var tencongty = document.getElementsByName("KhachHangLamPhanMem_TenCongTy").item(0);
    if (tencongty.value == "") {
        alert("Please input TenCongTy");
        return false;
    }
    var gioithieu = document.getElementsByName("KhachHangLamPhanMem_GioiThieu").item(0);
    if (gioithieu.value == "") {
        alert("Please input GioiThieu");
        return false;
    }
    return true;
}